/**
 * 
 */
package com.quiz.activity;

import com.flurry.android.FlurryAgent;
import com.quiz.activity.util.QuizUtil;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;


/**
 *
 * @author Brian Boyle
 * Apr 23, 2012
 */
public class HowToPlayActivity extends Activity {

    /**
     * {@inheritDoc}
     */
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FlurryAgent.onStartSession(this, QuizUtil.FLURRY_KEY);

        setContentView(R.layout.how_to_play);

        TextView header = (TextView) findViewById(R.id.howtoplayheader);
        QuizUtil.setMafiaFont(header, 48, getAssets());

        //Rank Section
        TextView rankHeader = (TextView) findViewById(R.id.rankHeader);
        QuizUtil.setMafiaFont(rankHeader, 36, getAssets());

        TextView soldierText = (TextView) findViewById(R.id.soldier);
        QuizUtil.setMafiaFont(soldierText, 24, getAssets());
        TextView capoText = (TextView) findViewById(R.id.capo);
        QuizUtil.setMafiaFont(capoText, 24, getAssets());
        TextView consigliereText = (TextView) findViewById(R.id.consigliere);
        QuizUtil.setMafiaFont(consigliereText, 24, getAssets());
        TextView underBossText = (TextView) findViewById(R.id.underboss);
        QuizUtil.setMafiaFont(underBossText, 24, getAssets());
        TextView bossText = (TextView) findViewById(R.id.boss);
        QuizUtil.setMafiaFont(bossText, 24, getAssets());

        //Scoring Section
        TextView scoringHeader = (TextView) findViewById(R.id.ScoringHeader);
        QuizUtil.setMafiaFont(scoringHeader, 36, getAssets());

        //Time Limit Section
        TextView timeLimitHeader = (TextView) findViewById(R.id.timeLimitHeader);
        QuizUtil.setMafiaFont(timeLimitHeader, 36, getAssets());

        //Lives Section
        TextView liveHeader = (TextView) findViewById(R.id.livesHeader);
        QuizUtil.setMafiaFont(liveHeader, 36, getAssets());

        //Highscores Section
        TextView highscoresHeader = (TextView) findViewById(R.id.highscoresHeader);
        QuizUtil.setMafiaFont(highscoresHeader, 36, getAssets());
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void onStop() {
        super.onStop();
        FlurryAgent.onEndSession(this);
    }
}
